package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.JhjsOneHistoryMapper;
import com.ruoyi.control.domain.JhjsOneHistory;
import com.ruoyi.control.service.IJhjsOneHistoryService;

/**
 * 401机巷局扇历史数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-08
 */
@Service
public class JhjsOneHistoryServiceImpl extends ServiceImpl<JhjsOneHistoryMapper, JhjsOneHistory> implements IJhjsOneHistoryService //修改
{
    @Autowired
    private JhjsOneHistoryMapper jhjsOneHistoryMapper;

    /**
     * 查询401机巷局扇历史数据
     * 
     * @param id 401机巷局扇历史数据主键
     * @return 401机巷局扇历史数据
     */
    @Override
    public JhjsOneHistory selectJhjsOneHistoryById(String id)
    {
        return jhjsOneHistoryMapper.selectJhjsOneHistoryById(id);
    }

    /**
     * 查询401机巷局扇历史数据列表
     * 
     * @param jhjsOneHistory 401机巷局扇历史数据
     * @return 401机巷局扇历史数据
     */
    @Override
    public List<JhjsOneHistory> selectJhjsOneHistoryList(JhjsOneHistory jhjsOneHistory)
    {
        return jhjsOneHistoryMapper.selectJhjsOneHistoryList(jhjsOneHistory);
    }

    /**
     * 新增401机巷局扇历史数据
     * 
     * @param jhjsOneHistory 401机巷局扇历史数据
     * @return 结果
     */
    @Override
    public int insertJhjsOneHistory(JhjsOneHistory jhjsOneHistory)
    {
        return jhjsOneHistoryMapper.insertJhjsOneHistory(jhjsOneHistory);
    }

    /**
     * 修改401机巷局扇历史数据
     * 
     * @param jhjsOneHistory 401机巷局扇历史数据
     * @return 结果
     */
    @Override
    public int updateJhjsOneHistory(JhjsOneHistory jhjsOneHistory)
    {
        jhjsOneHistory.setUpdateTime(DateUtils.getNowDate());
        return jhjsOneHistoryMapper.updateJhjsOneHistory(jhjsOneHistory);
    }

    /**
     * 批量删除401机巷局扇历史数据
     * 
     * @param ids 需要删除的401机巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJhjsOneHistoryByIds(String[] ids)
    {
        return jhjsOneHistoryMapper.deleteJhjsOneHistoryByIds(ids);
    }

    /**
     * 删除401机巷局扇历史数据信息
     * 
     * @param id 401机巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJhjsOneHistoryById(String id)
    {
        return jhjsOneHistoryMapper.deleteJhjsOneHistoryById(id);
    }
}
